home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Various / DevDisk 65 (1989)(DevWare PD).zip / DevDisk 65 (1989)(DevWare PD).adf / prosuite / reqsupp.h < prev    next >
C/C++ Source or Header  |  1990-07-11  |  2KB  |  56 lines

  1.  
  2. #ifndef REQSUPP_H
  3. #define REQSUPP_H
  4.  
  5.  
  6. /* **************************************************************************
  7.  *
  8.  * Include File for the Requester Support Mechanism
  9.  *     from Book 1 of the Amiga Programmers' Suite by RJ Mical
  10.  *
  11.  * Copyright (C) 1986, 1987, Robert J. Mical
  12.  * All Rights Reserved.
  13.  *
  14.  * Created for Amiga developers.
  15.  * Any or all of this code can be used in any program as long as this
  16.  * entire notice is retained, ok?  Thanks.
  17.  *
  18.  * HISTORY      NAME            DESCRIPTION
  19.  * -----------  --------------  --------------------------------------------
  20.  * 12 Aug 86    RJ >:-{)*       Prepare (clean house) for release
  21.  * 3 May 86     =RJ Mical=      Fix prop gadget for both 1.1 and 1.2
  22.  * 1 Feb 86     =RJ Mical=      Created this file.
  23.  *
  24.  * *********************************************************************** */
  25.  
  26.  
  27.  
  28. /* === ReqSupport Structure ============================================== */
  29. struct ReqSupport
  30.     {
  31.     struct Requester Requester;  /* Yes, a complete Requester structure! */
  32.  
  33.     struct Window *Window;       /* Window that will contain this requester */
  34.  
  35.     /* These are the special handler routines.  You can add any to these
  36.      * that you find appropriate if you plan on customizing DoRequest().
  37.      * You can also leave these NULL to specify that you're not interested.
  38.      */
  39.     LONG (*StartRequest)();        /* Called after the requester is created */
  40.     LONG (*GadgetHandler)();    /* Called with each GADGETUP event */
  41.     LONG (*NewDiskHandler)();    /* Called with each DISKINSERTED event */
  42.     LONG (*KeyHandler)();        /* Called with each VANILLAKEY event */
  43.     LONG (*MouseMoveHandler)(); /* Called when the mouse is seen to move */
  44.  
  45.     /* When DoRequest() returns, the GadgetID of the last selected gadget
  46.      * can be found here.
  47.      */
  48.     SHORT SelectedGadgetID;
  49.     };
  50.  
  51.  
  52.  
  53. #endif /* of REQSUPP_H */
  54.  
  55.  
  56.